Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Draw Context Flags Masks

The flags parameter passed to the QADrawContextNew function specifies a set of bit flags that control features of the new draw context. You can use these masks to configure the flags parameter.

#define kQAContext_None                             0
#define kQAContext_NoZBuffer                        (1 << 0)
#define kQAContext_DeepZ                            (1 << 1)
#define kQAContext_DoubleBuffer                     (1 << 2)
#define kQAContext_Cache                            (1 << 3)

Constant descriptions

kQAContext_None
Pass this value for no draw context features.
kQAContext_NoZBuffer
The new draw context should not be z buffered.
kQAContext_DeepZ
The new draw context should have a z buffer with at least 24 bits of precision.
kQAContext_DoubleBuffer
The new draw context should be double buffered.
kQAContext_Cache
The new draw context should be used for a draw context cache. When you create a draw context with this feature, it is always considered a draw context cache. Accordingly, objects rendered into a draw context cache never appear on the device (not even on a memory device). The only way to view objects rendered into a draw context cache is to use that cache to initialize a non-cached draw context.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |